Add "extern C" declarations around AppChooser headers.
authorMurray Cumming <murrayc@murrayc.com>
Thu, 10 Feb 2011 09:02:06 +0000 (10:02 +0100)
committerMurray Cumming <murrayc@murrayc.com>
Thu, 10 Feb 2011 09:02:38 +0000 (10:02 +0100)
This is necessary to allow linking from code compiled as C++.

gtk/gtkappchooserbutton.h
gtk/gtkappchooserdialog.h
gtk/gtkappchooserwidget.h

index a5e9ed151cab81a5037a93a58b3f36a0604c0f3c..dd9e9cf6a3f068af05e935fad91dad0dc686da04 100644 (file)
@@ -31,6 +31,8 @@
 #include <gtk/gtkcombobox.h>
 #include <gio/gio.h>
 
+G_BEGIN_DECLS
+
 #define GTK_TYPE_APP_CHOOSER_BUTTON            (gtk_app_chooser_button_get_type ())
 #define GTK_APP_CHOOSER_BUTTON(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_APP_CHOOSER_BUTTON, GtkAppChooserButton))
 #define GTK_APP_CHOOSER_BUTTON_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_APP_CHOOSER_BUTTON, GtkAppChooserButtonClass))
@@ -79,5 +81,6 @@ void     gtk_app_chooser_button_set_heading           (GtkAppChooserButton *self
 const gchar *
          gtk_app_chooser_button_get_heading           (GtkAppChooserButton *self);
 
+G_END_DECLS
 
 #endif /* __GTK_APP_CHOOSER_BUTTON_H__ */
index 30f092e65287978e800289f584d811d2f5065139..ba73cad5c5621dc720e40e147e5db249df1751a7 100644 (file)
@@ -34,6 +34,8 @@
 #include <gtk/gtkdialog.h>
 #include <gio/gio.h>
 
+G_BEGIN_DECLS
+
 #define GTK_TYPE_APP_CHOOSER_DIALOG            (gtk_app_chooser_dialog_get_type ())
 #define GTK_APP_CHOOSER_DIALOG(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_APP_CHOOSER_DIALOG, GtkAppChooserDialog))
 #define GTK_APP_CHOOSER_DIALOG_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_APP_CHOOSER_DIALOG, GtkAppChooserDialogClass))
@@ -73,4 +75,6 @@ void          gtk_app_chooser_dialog_set_heading          (GtkAppChooserDialog *
                                                            const gchar         *heading);
 const gchar * gtk_app_chooser_dialog_get_heading          (GtkAppChooserDialog *self);
 
+G_END_DECLS
+
 #endif /* __GTK_APP_CHOOSER_DIALOG_H__ */
index e12541762c1ab69e7f7da6dcc2fd31635dce949e..e1c9a8659c29a3ddbdba78b70d227a480ee39af9 100644 (file)
@@ -35,6 +35,8 @@
 #include <gtk/gtkmenu.h>
 #include <gio/gio.h>
 
+G_BEGIN_DECLS
+
 #define GTK_TYPE_APP_CHOOSER_WIDGET            (gtk_app_chooser_widget_get_type ())
 #define GTK_APP_CHOOSER_WIDGET(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_APP_CHOOSER_WIDGET, GtkAppChooserWidget))
 #define GTK_APP_CHOOSER_WIDGET_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_APP_CHOOSER_WIDGET, GtkAppChooserWidgetClass))
@@ -98,4 +100,6 @@ void          gtk_app_chooser_widget_set_default_text     (GtkAppChooserWidget *
                                                            const gchar         *text);
 const gchar * gtk_app_chooser_widget_get_default_text     (GtkAppChooserWidget *self);
 
+G_END_DECLS
+
 #endif /* __GTK_APP_CHOOSER_WIDGET_H__ */